(function () {
    var EVENT_CLICK = Laya.Event.CLICK;
    var io = ppt.io;

    function roleTab(call) {
        roleTab.super(this);
        this.callback  = call;
        this.direction = null;
        this.init();
    }
    Laya.class(roleTab, "Com.Role.Tab", ui.Role.RoleboxUI);
    var _proto = roleTab.prototype;

    _proto.init = function () {
        this.rightBtn.on(Laya.Event.CLICK,this,this.leftGo);
        this.leftBtn.on(Laya.Event.CLICK,this,this.rightGo);
    }
    _proto.leftGo = function () {
        this.direction = 'next';
        this.callback(this.direction);
    }
    _proto.rightGo = function () {
        this.direction = 'prev';
        this.callback(this.direction);
    }
})();